home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / pattern accessors. < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     pattern accessors.
  2. Sent:        4/17/96 8:23 AM
  3. Received:    4/17/96 8:51 AM
  4. From:        Martin Sandberg, msandber@Sigma4.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >When you say pattern doesn't have Get and SetRGB are you thinking about
  9. >the Mac call MakeRGBPat? This is something we are currently missing. You
  10. >can still do it by creating a Macintosh Pixpat using MakeRGBPat and
  11. >create a FW_CPattern using the PixPat.
  12.  
  13. What I'd really like to do is get at the FW_PlatformColorPattern like I can
  14. get at the color components of an FW_CColor. I really don't want to get
  15. platform specific if I can avoid it.
  16.  
  17. Something like:
  18. FW_PlatformColorPattern* GetPattern()
  19. void                     SetPattern(PlatformColorPattern *thePattern)
  20.  
  21. would be NICE! Again, the FW_CColorPatternRep has some accessors, but
  22. they're _private_!:
  23.  
  24. private:
  25.         void MakePixelPattern(const FW_PixelPattern& pixels, short
  26. nbColors, const FW_CColor* colorTable);
  27.  
  28.         void GetPixelData(FW_PixelPattern& pixData) const;
  29.         void SetPixelData(const FW_PixelPattern& pixData);
  30.  
  31.         unsigned short GetColorTable(FW_CColor*& colors) const;
  32.  
  33. Thanx again for the quick response!
  34.  
  35. Martin, Bill & the Sigma 4 gang.
  36.  
  37.